package com.songqintuan.platform.genl;

import javax.faces.application.FacesMessage;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;
import javax.faces.model.SelectItem;

import com.songqintuan.common.util.MessageFactory;
import com.songqintuan.platform.common.constant.PlatformConstants;

@SuppressWarnings("serial")
@ManagedBean(name="existSystemUserIdentity")
@ApplicationScoped
public class ExistSystemUserIdentityBean implements java.io.Serializable {

	private SelectItem[] items;

	public SelectItem[] getItems() {
		return items;
	}

	public void setItems(SelectItem[] items) {
		this.items = items;
	}


	public ExistSystemUserIdentityBean() {
		
		SelectItem[] tempCustomerIdentityItems = new SelectItem[2];
		//set select default 
		
		String aCustomerStatusN18 = MessageFactory.getMessage(PlatformConstants.USER_BUNDLE_NAME,"system.user.identity.adminstractor.value", FacesMessage.SEVERITY_ERROR).getDetail();
		tempCustomerIdentityItems[0] = new SelectItem("0",aCustomerStatusN18);
		String iCustomerStatusN18 = MessageFactory.getMessage(PlatformConstants.USER_BUNDLE_NAME,"system.user.identity.member.value", FacesMessage.SEVERITY_ERROR).getDetail();
		tempCustomerIdentityItems[1] = new SelectItem("1",iCustomerStatusN18);
		this.setItems(tempCustomerIdentityItems);
	}
}
